home *** CD-ROM | disk | FTP | other *** search
- Path: dartvax.dartmouth.edu!NewsWatcher!user
- From: Robert.Lendvai@dartmouth.edu (Robert Lendvai)
- Newsgroups: comp.lang.c++
- Subject: Operator Overloading question
- Date: Sun, 21 Jan 1996 01:19:59 -1000
- Organization: Dartmouth College
- Message-ID: <Robert.Lendvai-2101960120380001@129.170.80.94>
- NNTP-Posting-Host: atgw-kip-1-94.dartmouth.edu
-
- Codewarrior is saying this:
-
- Error : illegal 'operator' declaration
- player.h line 23 friend Boolean operator == (Player * member, char *
- dude); //Check to see if a player has this name
-
- about the following code, but I have no idea why. Can anyone help?
-
-
-
- #include <iostream.h>
- #include <stdlib.h>
-
- class Player{
-
- private:
-
-
- char * name;
- int rating;
- Player * next;
-
- public:
-
- Player(char * s);
- Player();
- ~Player();
-
-
-
-
- friend class Player_list;
- friend Boolean operator == (Player * member, char * dude); //Check to see
- if a //player has this name
-
- };
-